package com.example.demo.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import com.example.demo.service.PermissionsService;
import com.example.demo.dao.PermissionsMapper;
import com.example.demo.bean.Permissions;

@Service
public class PermissionsServiceImpl implements PermissionsService {

	@Autowired
	private PermissionsMapper permissionsMapper;

	public java.util.List<Permissions> queryPermissionsByPage (java.util.Map<String, Object> params){
		return this.permissionsMapper.selectPermissionsByPage(params);
	}

	public int queryPermissionsCount (java.util.Map<String, Object> params){
		return this.permissionsMapper.selectPermissionsCount(params);
	}

	public Permissions queryPermissionsOne (java.util.Map<String, Object> params){
		return this.permissionsMapper.selectPermissionsOne(params);
	}

	public int updatePermissions (java.util.Map<String, Object> params){
		return this.permissionsMapper.updatePermissions(params);
	}

	public int deletePermissions (java.util.List<String> idList){
		return this.permissionsMapper.deletePermissions(idList);
	}

	public int insertPermissions (java.util.Map<String, Object> params){
		return this.permissionsMapper.insertPermissions(params);
	}

}